package nfeProc;

import java.io.File;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;

public class Teste {

	public static void main(String[] args) {

		try {
			JAXBContext jaxbContext = JAXBContext.newInstance(new Class[]{nfeProc.NFeProc.class});
			Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
			NFeProc nFeProc = (NFeProc) unmarshaller.unmarshal(new File("nfe.xml"));
			System.out.println(nFeProc.getNfe().getInfNFe().getValoresTotaisDaNota().getIcmsTotal().getValorNotaFiscal());
		} catch (JAXBException e) {
			e.printStackTrace();
		}

	}

}
